package com.example.carrierapp.bean.waybill;

import java.util.List;

public class WaybillListBean {

    int totalCount;//(integer, optional),

    List<WaybillListInfo> items;//(Array[Logistics.Application.CarrierApp.DispatchDtos.DispatchDto], optional)

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public List<WaybillListInfo> getItems() {
        return items;
    }

    public void setItems(List<WaybillListInfo> items) {
        this.items = items;
    }

    @Override
    public String toString() {
        return "WaybillListBean{" +
                "totalCount=" + totalCount +
                ", items=" + items +
                '}';
    }

    public class WaybillListInfo {
        public String code;//运单编码,
        public int carrierId;//承运商id/司机模式承运商ID为0,
        public int driverId;//司机外键,
        public String driverName;//司机名称,
        public String driverPhone;//司机电话,
        public int carId;//车辆外键,
        public String carNum;//车牌,
        public int pickArea;//提货地址,
        public String pickCityName;//提货城市名称,
        public int takeArea;//收货地址,
        public String takeCityName;//收货城市名称,
        public String proID;//产品ID,
        public String proName;//货物名称,
        public double dispatchNum;//调度重量,
        public double shipment;//运量,
        public double loadingNum;//实际签收量(结算重量) ,,
        public int unit;//计价单位(1吨2整车3件4立方)=['1','2','4'],
        public String unitName;//计价单位名称,
        public int state;//运单状态=['0','2','4','5','-1'],
        public int insureState;//投保状态=['0','1','2'],
        //(integer, optional):付款结算状态
        // -1无需结算(平推)
        // 0未结算(默认)
        // 1.已提交申请
        // 2.业务审核通过
        // 3.财务审核通过
        // 5.到付数据(预留不做)
        public int payState;
        public String payStateName;// (string, optional, read only):承运商结算装态名称
        public String stateName;// 运单状态,
        public String insureStateName;//投保状态名称,
        public int picId;//产品图片Id,
        public String productPicPath;//产品图片路径,
        public boolean isChangedDes;//是否变更目的地或运量,
        public int unloadingArea;//卸货地编号,
        public int id;//(integer, optional)
        public boolean isAbnormal;
        public String abnormalReason;
        public String loadingTime;//装车时间 ,
        public int isLoadingActive;// 装车信息审核状态0、未审核 1、审核通过 2、审核未通过 3 重新上传
        public String dueDateTip;

        @Override
        public String toString() {
            return "WaybillListInfo{" +
                    "waybillCode='" + code + '\'' +
                    ", carrierId=" + carrierId +
                    ", driverMainId=" + driverId +
                    ", driverName='" + driverName + '\'' +
                    ", driverPhone='" + driverPhone + '\'' +
                    ", carId=" + carId +
                    ", carNumber='" + carNum + '\'' +
                    ", pickArea=" + pickArea +
                    ", pickCityName='" + pickCityName + '\'' +
                    ", takeArea=" + takeArea +
                    ", takeCityName='" + takeCityName + '\'' +
                    ", proID='" + proID + '\'' +
                    ", proName='" + proName + '\'' +
                    ", schedulingNum=" + dispatchNum +
                    ", shipment=" + shipment +
                    ", loadingNum=" + loadingNum +
                    ", unit=" + unit +
                    ", unitName='" + unitName + '\'' +
                    ", state=" + state +
                    ", insureState=" + insureState +
                    ", payState=" + payState +
                    ", payStateName='" + payStateName + '\'' +
                    ", stateName='" + stateName + '\'' +
                    ", insureStateName='" + insureStateName + '\'' +
                    ", picId=" + picId +
                    ", productPicPath='" + productPicPath + '\'' +
                    ", isChangedDes=" + isChangedDes +
                    ", unloadingArea=" + unloadingArea +
                    ", id=" + id +
                    ", isAbnormal=" + isAbnormal +
                    ", abnormalReason='" + abnormalReason + '\'' +
                    ", loadingTime='" + loadingTime + '\'' +
                    ", isLoadingActive=" + isLoadingActive +
                    ", dueDateTip='" + dueDateTip + '\'' +
                    ", signTime='" + signTime + '\'' +
                    '}';
        }

        public String signTime;// 送达时间 ,

    }
}


